﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime dt1 = DateTime.Now;

            DateTime dt2 = new DateTime(2020, 5, 1);

            TimeSpan ts = dt1 - dt2;

            Console.WriteLine("间隔的天数为{0}天", ts.Days);
        }
    }
}
